package com.example.springboot.mapper.blog.service.serviceImp;

import com.example.springboot.entity.User;
import com.example.springboot.mapper.blog.mapper.UserMapper;
import com.example.springboot.mapper.blog.service.UserLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("UserLoginServiceImp")
public class UserLoginServiceImp implements UserLoginService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> selectUser(String username, String pas) {
        return userMapper.selectUser(username,pas);
    }

    @Override
    public User findByUsername(String username) {
        return userMapper.findByUsername(username);
    }

    @Override
    public User findUserById(String Id) {
        return userMapper.findUserById(Id);
    }
}
